fix paragraphs again
authorErik Moeller <erik@users.mediawiki.org>
Sat, 10 Apr 2004 06:50:49 +0000 (06:50 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Sat, 10 Apr 2004 06:50:49 +0000 (06:50 +0000)
includes/Parser.php

index 548f8ff..b5f6193 100644 (file)
@@ -1113,15 +1113,7 @@ class Parser
                                                }
                                        } else { 
                                                $newSection = "p";
-                                               if ( '' == trim($t) ) {
-                                                       if ( '' == trim($lastLine) ) {
-                                                               $text .= $this->closeParagraph();
-                                                               $text .= "<" . $newSection . "><br/>";
-                                                               $this->mLastSection = $newSection;
-                                                       } else {
-                                                               $t = '';
-                                                       }
-                                               } else if ($this->mLastSection != $newSection) {
+                                               if ( ''==trim($t) && ( '' != trim($lastLine) )) {
                                                        $text .= $this->closeParagraph();
                                                        $text .= "<" . $newSection . ">";
                                                        $this->mLastSection = $newSection;